package com.lesama.domain;

public class Manager extends Employee{
    private double rewards;

    public Manager(double rewards) {
        this.rewards = rewards;
    }

    public Manager(String name, int age, double salary, double rewards) {
        super(name, age, salary);
        this.rewards = rewards;
    }

    @Override
    public void work() {
        System.out.println("姓名为" + getName() + "，年龄为" + getAge() + "，工资为" + getSalary() + "奖金为" + rewards + "的项目经理正在分配任务");
    }
}
